Check only major OpenSSL version
authorBastian Germann <bage@debian.org>
Fri, 22 Aug 2025 11:15:18 +0000 (13:15 +0200)
committerVictor Seva <vseva@debian.org>
Thu, 6 Nov 2025 15:11:32 +0000 (16:11 +0100)
The version check was written during OpenSSL 0.9 era.
It is not needed in Debian and only getting in the way.

Gbp-Pq: Name Check-only-major-OpenSSL-version.patch

src/modules/tls/tls_init.c

index 77af27d8d32307b65fdd3bf1437a3b4bbb0fd43e..a32f61f2a887d02f1ff19498a4f6b618f534f201 100644 (file)
@@ -866,7 +866,7 @@ int tls_h_mod_init_f(void)
         * (e.g. 0.9.8a & 0.9.8c are ok, but 0.9.8 and 0.9.9x are not)
         * - values is represented as 0xMMNNFFPPS: major minor fix patch status
         *   0x00090705f == 0.9.7e release */
-       if((ssl_version >> 12) != (OPENSSL_VERSION_NUMBER >> 12)) {
+       if((ssl_version >> 28) != (OPENSSL_VERSION_NUMBER >> 28)) {
                LM_CRIT("installed openssl library"
                                " version is too different from the library the " NAME " tls"
                                " module was compiled with: installed \"%s\" (0x%08lx),"